<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      alsa-lib-1.2.1.2
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;42.&nbsp;Multimedia Libraries and Drivers
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="alsa.html" title="ALSA-1.2.1">Prev</a>
          <p>
            ALSA-1.2.1
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="alsa-plugins.html" title=
          "alsa-plugins-1.2.1">Next</a>
          <p>
            alsa-plugins-1.2.1
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="libdriv.html" title=
          "Chapter&nbsp;42.&nbsp;Multimedia Libraries and Drivers">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="alsa-lib" name="alsa-lib"></a>alsa-lib-1.2.1.2
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to ALSA Library
        </h2>
        <p>
          The <span class="application">ALSA Library</span> package contains
          the ALSA library used by programs (including <span class=
          "application">ALSA Utilities</span>) requiring access to the ALSA
          sound interface.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://www.alsa-project.org/files/pub/lib/alsa-lib-1.2.1.2.tar.bz2">
                https://www.alsa-project.org/files/pub/lib/alsa-lib-1.2.1.2.tar.bz2</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download (FTP): <a class="ulink" href=
                "ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.2.1.2.tar.bz2">
                ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.2.1.2.tar.bz2</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 82ddd3698469beec147e4f4a67134ea0
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 981 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 35 MB (with tests)
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.3 SBU (with tests)
              </p>
            </li>
          </ul>
        </div>
        <h3>
          ALSA Library Dependencies
        </h3>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="../general/doxygen.html" title=
          "Doxygen-1.8.17">Doxygen-1.8.17</a> and <a class="xref" href=
          "../general/python2.html" title="Python-2.7.17">Python-2.7.17</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/alsa-lib">http://wiki.linuxfromscratch.org/blfs/wiki/alsa-lib</a>
        </p>
      </div>
      <div class="kernel" lang="en" xml:lang="en">
        <h2 class="sect2">
          <a id="alsa-lib-kernel" name="alsa-lib-kernel"></a>Kernel
          Configuration
        </h2>
        <p>
          If needed, enable the following options in the kernel configuration
          and recompile the kernel:
        </p>
        <pre class="screen">
<code class="literal">Device Drivers ---&gt;
  &lt;*/m&gt; Sound card support ---&gt;                  [CONFIG_SOUND]
    &lt;*/m&gt; Advanced Linux Sound Architecture ---&gt; [CONFIG_SND]
            Select settings and drivers appropriate for your hardware.</code>
</pre>
        <p>
          In the Device Drivers &rArr; Sound card support &rArr; Advanced
          Linux Sound Architecture section of the kernel configuration,
          select the settings and drivers appropriate for your hardware.
          Ensure that the deprecated Device Drivers &rArr; Sound card support
          &rArr; Open Sound System is <span class=
          "emphasis"><em>not</em></span> selected. If necessary, recompile
          and install your new kernel.
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of ALSA Library
        </h2>
        <p>
          Install <span class="application">ALSA Library</span> by running
          the following commands:
        </p>
        <pre class="userinput">
<kbd class="command">./configure &amp;&amp;
make</kbd>
</pre>
        <p>
          If you have <span class="application">Doxygen</span> installed and
          you wish to build the library API documentation, run the following
          commands from the top-level directory of the source tree:
        </p>
        <pre class="userinput">
<kbd class="command">make doc</kbd>
</pre>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install</kbd>
</pre>
        <p>
          To install the API documentation, run the following command as the
          <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class=
"command">install -v -d -m755 /usr/share/doc/alsa-lib-1.2.1.2/html/search &amp;&amp;
install -v -m644 doc/doxygen/html/*.* \
                /usr/share/doc/alsa-lib-1.2.1.2/html &amp;&amp;
install -v -m644 doc/doxygen/html/search/* \
                /usr/share/doc/alsa-lib-1.2.1.2/html/search</kbd>
</pre>
        <p>
          The test suite requires the alsa-lib package to be installed to
          link against some libraries. Now that alsa-lib is installed, if you
          wish to run the tests, issue: <span class="command"><strong>make
          check</strong></span>.
        </p>
      </div>
      <div class="configuration" lang="en" xml:lang="en">
        <h2 class="sect2">
          Configuring ALSA Library
        </h2>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3">
            <a id="alsa-lib-config" name="alsa-lib-config"></a>
          </h3>
          <h4 class="title">
            <a id="alsa-lib-config" name="alsa-lib-config"></a>Config Files
          </h4>
          <p>
            <code class="filename">~/.asoundrc</code> and <code class=
            "filename">/etc/asound.conf</code>
          </p>
        </div>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3"></h3>
          <h4 class="title">
            <a id="idm45779237706368" name=
            "idm45779237706368"></a>Configuration Information
          </h4>
          <p>
            The default <code class="filename">alsa.conf</code> is adequate
            for most installations. For extra functionality and/or advanced
            control of your sound device, you may need to create additional
            configuration files. For information on the available
            configuration parameters, visit <a class="ulink" href=
            "http://www.alsa-project.org/main/index.php/Asoundrc">http://www.alsa-project.org/main/index.php/Asoundrc</a>.
          </p>
        </div>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Program:</strong>
              <span class="segbody">aserver</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Library:</strong>
              <span class="segbody">libasound.so and libatopology.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/usr/include/alsa, /usr/lib/alsa-lib,
              /usr/share/alsa and /usr/share/doc/alsa-lib-1.2.1.2</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="aserver" name="aserver"></a><span class=
                    "term"><span class=
                    "command"><strong>aserver</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is the ALSA server.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libasound" name="libasound"></a><span class=
                    "term"><code class="filename">libasound.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains the ALSA API functions.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libatopology" name="libatopology"></a><span class=
                    "term"><code class=
                    "filename">libatopology.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains API functions for the ALSA topologies.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-16 18:46:23 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="alsa.html" title="ALSA-1.2.1">Prev</a>
          <p>
            ALSA-1.2.1
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="alsa-plugins.html" title=
          "alsa-plugins-1.2.1">Next</a>
          <p>
            alsa-plugins-1.2.1
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="libdriv.html" title=
          "Chapter&nbsp;42.&nbsp;Multimedia Libraries and Drivers">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
